package com.example.springbootcreatemanual.controller;

import com.example.springbootcreatemanual.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {
    @Autowired
    private EmailService emailService;


    @RequestMapping("/send")
    public Boolean send(){
        String to = "2324486528@qq.com";
        String title = "第三次测试";
        String content = "第三次测试";
        boolean flag = emailService.send(to,title,content);
        return flag;
    }
}
